package com.alangyun.remind.vo.user;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 特殊岗位视图<br/>
 *
 * @company 北京诚朗信息技术有限公司
 * @author hoobort klxukun@126.com
 * @datetime 2022年12月14日 下午2:17:14
 *
 */
public class SpecialView implements Serializable {
	
	private List<SpecialSum> sums;
	private List<SpecialUser> owners;
	private List<SpecialUser> unowners;
	
	public static SpecialView create() {
		SpecialView ret = new SpecialView();
		ret.sums = new ArrayList<SpecialSum>();
		ret.owners=new ArrayList<SpecialUser>();
		ret.unowners= new ArrayList<SpecialUser>();
		
		return ret;
	}
	

	
	public List<SpecialSum> getSums() {
		return sums;
	}

	public void setSums(List<SpecialSum> sums) {
		this.sums = sums;
	}

	public List<SpecialUser> getOwners() {
		return owners;
	}

	public void setOwners(List<SpecialUser> owners) {
		this.owners = owners;
	}

	public List<SpecialUser> getUnowners() {
		return unowners;
	}

	public void setUnowners(List<SpecialUser> unowners) {
		this.unowners = unowners;
	}

	public static class SpecialSum implements Serializable {
		private String name;
		private Integer total = 0;//总数
		private Integer own =0;//持证数
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public Integer getTotal() {
			return total;
		}
		public void setTotal(Integer total) {
			this.total = total;
		}
		public Integer getOwn() {
			return own;
		}
		public void setOwn(Integer own) {
			this.own = own;
		}
		
		public void incTotal() {
			this.total +=1;
		}
		
		public void intOwn() {
			this.own+=1;
		}
	}
	
	public static class SpecialUser implements Serializable {
		private String id;
		private String name;
		private String unit;
		private String depart;
		private String group;
		private String cert;
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getUnit() {
			return unit;
		}
		public void setUnit(String unit) {
			this.unit = unit;
		}
		public String getDepart() {
			return depart;
		}
		public void setDepart(String depart) {
			this.depart = depart;
		}
		public String getGroup() {
			return group;
		}
		public void setGroup(String group) {
			this.group = group;
		}
		public String getCert() {
			return cert;
		}
		public void setCert(String cert) {
			this.cert = cert;
		}
		
	}
}
